﻿#ifndef COLLECTIONLIST_H
#define COLLECTIONLIST_H

#include <QWidget>
#include "collectioncontent.h"
#include "hoteldetails.h"

namespace Ui {
class CollectionList;
}

class CollectionList : public QWidget
{
    Q_OBJECT
signals:
    void signalGainHotelDetailsCollection(const QString&);
    void signalDeleteSaveHotelCollection(const QString&);

public:
    explicit CollectionList(QWidget *parent = nullptr);
    ~CollectionList();

    void initCollectionContent();

public slots:
    void slotSaveListClean();
    void slotSetSaveList(bool result,const QString& msg);
    void slotSetSaveHotelImage(bool result,const QString& saveID,const QImage& image);

private:
    Ui::CollectionList *ui;

    int m_contentCount;
    HotelDetails *m_hotelDetails;
    QVector<CollectionContent *> m_collectionContentVector;
};

#endif // COLLECTIONLIST_H
